package com.dys.testrelect02;

import java.io.Serial;
import java.io.Serializable;

/**
 * @className: com.dys.testrelect02.Person
 * @description: com.dys.testrelect02
 * @author: pine cone
 * @version: v1.0.0
 * @createTime: 2024/08/27 下午8:41
 */
public class Person implements Serializable {
    @Serial
    private static final long serialVersionUID = 1680971885077604109L;
    // 属性
    public String name;
    private int age;

    private void eat() {
        System.out.println("Person eat");
    }

    public void sleep() {
        System.out.println("Person sleep");
    }
}
